Update GtkAboutDialog documentation
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Dec 2010 16:38:31 +0000 (11:38 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Dec 2010 16:40:39 +0000 (11:40 -0500)
Also, remove some dead code, pointed out in bug 637608.

gtk/gtkaboutdialog.c

index b72676d1ba9c93543ce1184a3bd08360f0aef8dc..3d2d73fc824e0199f73c147c60473c5b086f60a6 100644 (file)
@@ -398,8 +398,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
   /**
    * GtkAboutDialog:website-label:
    *
-   * The label for the link to the website of the program. If this is not set,
-   * it defaults to the URL specified in the #GtkAboutDialog:website property.
+   * The label for the link to the website of the program.
    *
    * Since: 2.6
    */
@@ -407,7 +406,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
                                    PROP_WEBSITE_LABEL,
                                    g_param_spec_string ("website-label",
                                                         P_("Website label"),
-                                                        P_("The label for the link to the website of the program. If this is not set, it defaults to the URL"),
+                                                        P_("The label for the link to the website of the program"),
                                                         NULL,
                                                         GTK_PARAM_READWRITE));
 
@@ -1001,9 +1000,7 @@ update_website (GtkAboutDialog *about)
     }
   else
     {
-      if (priv->website_url)
-        gtk_label_set_text (GTK_LABEL (priv->website_label), priv->website_url);
-      else if (priv->website_text)
+      if (priv->website_text)
         gtk_label_set_text (GTK_LABEL (priv->website_label), priv->website_text);
       else
         gtk_widget_hide (priv->website_label);
@@ -1454,7 +1451,6 @@ gtk_about_dialog_get_website_label (GtkAboutDialog *about)
  * @website_label: the label used for the website link
  *
  * Sets the label to be used for the website link.
- * It defaults to the website URL.
  *
  * Since: 2.6
  */